//

import 'package:hktk_app/model/practice/practice_model.dart';

/// 时间段
class PracticeSectionModel {
  /// 日期
  String? date;

  /// 数据
  PracticeModel? data;

  PracticeSectionModel({
    this.date,
    this.data,
  });

  PracticeSectionModel.fromJson(Map<String, dynamic> json) {
    date = json["date"];
    data = json["data"] != null ? PracticeModel.fromJson(json["data"]) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> dataV = <String, dynamic>{};
    dataV["date"] = date;
    if (data != null) {
      dataV["data"] = data!.toJson();
    }
    return dataV;
  }
}
